<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<script type="text/javascript">
$("#backBtn").bind("click",function(){
	Cms.closeAjaxWin();
});
$("#saveBtn").bind("click",function(){
	$("#editForm").request({
		callback:function(data){
			if("S"==data.flag){
				Cms.alert("保存成功",function(){
					Cms.closeAjaxWin();
					$("#queryBtn").click();
				});
			}else{
				Cms.alert("保存失败");
			}
		}
	});
});
</script>
<form action="<%=request.getContextPath()%>/person!save" method="post" id="editForm">
	<input type="hidden" name="flag" value="${param.flag }"/>
	<input type="hidden" name="id" value="${person.id }"/>
	<table width="100%" align="center">
		<tbody>
			<tr>
				<th>
					name：
				</th>
				<td>
					<input type="text" name="name" value="${person.name }"/>
				</td>
				<th>
					tel：
				</th>
				<td>
					<input type="text" name="tel" value="${person.tel }"/>
				</td>
			</tr>
			<tr>
				<th>
					birthday：
				</th>
				<td>
					<input type="text" name="birthday" value="2010-01-03" readonly="readonly"/>
				</td>
				<th>
					address：
				</th>
				<td>
					<input type="text" name="address" value="${person.address }"/>
				</td>
			</tr>
		</tbody>
		<tfoot>
			<tr>
				<td colspan="4" style="text-align: center;">
					<input type="button" value="保存" id="saveBtn" />
					&nbsp;&nbsp;&nbsp;
					<input type="button" value="关闭" id="backBtn" />
				</td>
			</tr>
		</tfoot>
	</table>
</form>
